<?php 
if (Mage::getStoreConfig('ajaxcart/general/enabled')) :?>
<script type="text/javascript">
    AjaxPro.init({
        message             : '<?php echo Mage::getStoreConfig('ajaxcart/general/text')?>',
        location            : "<?php echo Mage::getStoreConfig('ajaxcart/general/location')?>",
        opacity             : <?php echo Mage::getStoreConfig('ajaxcart/general/opacity')?>,

        isShoppingCart      : <?php echo (Mage::getStoreConfig('ajaxcart/addToCart/enabled') != 1 ? 0 : 1)?>,
        
        hasNoticeForm       : <?php echo (Mage::getStoreConfig('ajaxcart/general/enabledNoticeForm') != 1 ? 0 : 1)?>,
        hasShoppingCartForm : <?php echo (Mage::getStoreConfig('ajaxcart/addToCart/enabledForm') != 1 ? 0 : 1)?>,
        //
        handles             : <?php echo Zend_Json::encode($this->getLayout()->getUpdate()->getHandles());?>,
        isLoggin            : <?php echo Mage::helper('customer')->isLoggedIn() ? 1 : 0 ?>,
        baseUrl             : "<?php echo Mage::getBaseUrl(); ?>",
        secureUrl           : "<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK, true); ?>",

        hasDeleteCartConfirm     : <?php echo (Mage::getStoreConfig('ajaxcart/addToCart/enabledDeleteConfirm') != 1 ? 0 : 1)?>,
        
        removeCartItemMessage     : '<?php echo Mage::helper('ajaxcart')->__('Are you sure you would like to remove this item from the shopping cart?')?>',
       

    });<?php
?>
</script>
<?php endif;?>
